package com.ruoyi.car.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 网约车订单对象 online_car_orders
 * 
 * @author Jolia
 * @date 2023-06-20
 */
public class OnlineCarOrders extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 订单ID */
    private Integer id;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Integer userId;

    /** 司机ID */
    @Excel(name = "司机ID")
    private Integer driverId;

    /** 订单编号 */
    @Excel(name = "订单编号")
    private String ordersCode;

    /** 起始地点 */
    @Excel(name = "起始地点")
    private String startPlace;

    /** 目的地点 */
    @Excel(name = "目的地点")
    private String endPlace;

    /** 订单金额 */
    @Excel(name = "订单金额")
    private Double ordersMoney;

    /** 订单状态(0.创建订单(用户下单成功) 1.(司机接单) 2.(到达目的地)待支付 3.未支付 4.已支付 5.取消订单) */
    @Excel(name = "订单状态(0.创建订单(用户下单成功) 1.(司机接单) 2.(到达目的地)待支付 3.未支付 4.已支付 5.取消订单)")
    private String status;

    /** 下单时间(创建订单时间) */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "下单时间(创建订单时间)", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdTime;

    /** 接单时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "接单时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date receivingTime;

    /** 结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endTime;

    /** 支付方式（0支付宝,1微信) */
    @Excel(name = "支付方式", readConverterExp = "支付方式（0支付宝,1微信)")
    private String payType;

    /** 支付时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "支付时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date payTime;

    /** 删除标识;0:未删除;1:删除 */
    private String delFlag;

    public void setId(Integer id) 
    {
        this.id = id;
    }

    public Integer getId() 
    {
        return id;
    }
    public void setUserId(Integer userId) 
    {
        this.userId = userId;
    }

    public Integer getUserId() 
    {
        return userId;
    }
    public void setDriverId(Integer driverId) 
    {
        this.driverId = driverId;
    }

    public Integer getDriverId() 
    {
        return driverId;
    }
    public void setOrdersCode(String ordersCode) 
    {
        this.ordersCode = ordersCode;
    }

    public String getOrdersCode() 
    {
        return ordersCode;
    }
    public void setStartPlace(String startPlace) 
    {
        this.startPlace = startPlace;
    }

    public String getStartPlace() 
    {
        return startPlace;
    }
    public void setEndPlace(String endPlace) 
    {
        this.endPlace = endPlace;
    }

    public String getEndPlace() 
    {
        return endPlace;
    }
    public void setOrdersMoney(Double ordersMoney) 
    {
        this.ordersMoney = ordersMoney;
    }

    public Double getOrdersMoney() 
    {
        return ordersMoney;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }
    public void setCreatedTime(Date createdTime) 
    {
        this.createdTime = createdTime;
    }

    public Date getCreatedTime() 
    {
        return createdTime;
    }
    public void setReceivingTime(Date receivingTime) 
    {
        this.receivingTime = receivingTime;
    }

    public Date getReceivingTime() 
    {
        return receivingTime;
    }
    public void setEndTime(Date endTime) 
    {
        this.endTime = endTime;
    }

    public Date getEndTime() 
    {
        return endTime;
    }
    public void setPayType(String payType) 
    {
        this.payType = payType;
    }

    public String getPayType() 
    {
        return payType;
    }
    public void setPayTime(Date payTime) 
    {
        this.payTime = payTime;
    }

    public Date getPayTime() 
    {
        return payTime;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("driverId", getDriverId())
            .append("ordersCode", getOrdersCode())
            .append("startPlace", getStartPlace())
            .append("endPlace", getEndPlace())
            .append("ordersMoney", getOrdersMoney())
            .append("status", getStatus())
            .append("createdTime", getCreatedTime())
            .append("receivingTime", getReceivingTime())
            .append("endTime", getEndTime())
            .append("payType", getPayType())
            .append("payTime", getPayTime())
            .append("updateTime", getUpdateTime())
            .append("delFlag", getDelFlag())
            .toString();
    }
}
